package systems;

import java.util.ArrayList;
import java.util.List;

public class RecentCache {
	private static List<String> list_author = new ArrayList<String>();
	
	private static int limit = 2000;
	
	public static void insertListAuthor(String name) {
		if (!list_author.contains(name) && list_author.size() <= limit) {
			list_author.add(name);
		}
	}
	
	public static void removeListAuthor(String name) {
		if (list_author.contains(name)) {
			list_author.remove(name);
		}
	}
	
	public static List<String> getListAuthor() {
		return list_author;
	}
}
